﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AAA.Base.Util.Reader;

namespace AAA.Finacial
{
    public sealed class TableReference
    {
        private static TableReference _instance;
        private Dictionary<string, string> _dicNormsDist;

        public static TableReference GetTable()
        {
            if (_instance == null)
                _instance = new TableReference();
            return _instance;
        }

        private TableReference()
        {            
            IniReader iniReader = new IniReader(Environment.CurrentDirectory + @"\AAA.Finacial.dll", "AAA.Finacial.table.NormsDist.ini");            
            _dicNormsDist = new Dictionary<string, string>();

            foreach (string strKey in iniReader.GetKey("Default"))
            {
                _dicNormsDist.Add(strKey, iniReader.GetParam(strKey));
            }


        }

    }
}
